import Vue from 'vue'
import 'normalize.css/normalize.css'
import '@/styles/index.scss' // global css
import './plugins'
import App from './App'
import store from './store'
import router from './router'
import '@/permission'
import 'amfe-flexible'
import '@/components'
Vue.config.productionTip = false
import Vant from 'vant'
import 'vant/lib/index.css'
import cookies from 'js-cookie'

Vue.use(Vant)

Vue.prototype.routerJump = (path, type) => {
  console.log(type);
  cookies.set('bigger', type === null || type === undefined ? cookies.get('bigger') : type)
  router.push({
    path: path,
    query: {
      vconsole: true
    }
  })
}
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
